// import { FormProps, FormSchema } from '/@/components/Table';
import { BasicColumn } from '/@/components/Table/src/types/table';

export function getCols(): BasicColumn[] {
  return [
    {
      title: '传感器编号',
      dataIndex: 'no',
      key: 'no',
    },
    {
      title: '通道',
      dataIndex: 'channel',
      key: 'channel',
    },
    {
      title: '是否启用',
      dataIndex: 'status',
      key: 'status',
    },
    {
      title: '初始值',
      dataIndex: 'in1',
      key: 'in1',
    },
    {
      title: '预警上限',
      dataIndex: 'th1Max',
      key: 'th1Max',
    },
    {
      title: '预警下限',
      dataIndex: 'th1Min',
      key: 'th1Min',
    },
    {
      title: '操作',
      dataIndex: 'action',
      key: 'action',
    },
  ];
}

export function getRows() {

  return (() => {
    const arr: any = [];
    for (let index = 0; index < 40; index++) {
      arr.push({
        id: `${index}`,
        code: 'SCDFVG-110',
        path: '001',
        enable: 1,
        init: 100,
        limit1: 105,
        limit2: 99,
      });
    }
    return arr;
  })();
}

